﻿package plugin.bossChallenge
{
    import com.core.*;

    public class BossChallengeControl extends Control
    {

        public function BossChallengeControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "bossChallenge")
            {
                if (param2.property == "showWorldBoss")
                {
                    this.target.showBossInfo(1, param2.newvalue);
                }
                else if (param2.property == "showPersonBoss")
                {
                    this.target.showBossInfo(0, param2.newvalue);
                }
                else if (param2.property == "selectItem")
                {
                    this.target.selectItem(param2.newvalue.data);
                }
                else if (param2.property == "close")
                {
                    this.target.close();
                }
                else if (param2.property == "updateFBJZ")
                {
                    this.target.showFBJZCount();
                }
            }
            return;
        }// end function

    }
}
